package model;

/**
 * InputProcess represents the input from the user for a particular process.
 * @author DoubleS
 * @version 1.0
 */
public class InputProcess
{
  /**
   * The process type.
   */
  private final ProcessType my_type;
  
  /**
   * Construct an InputProcess.
   * @param the_type The process type.
   */
  public InputProcess(final ProcessType the_type)
  {
    my_type = the_type;
  }
  
  /**
   * 
   * @return The process type of this input.
   */
  public ProcessType getProcessType()
  {
    return my_type;
  }
  
  /**
   * {@inheritDoc}
   */
  public String toString()
  {
    String a_string;
    switch (my_type)
    {
      case CALCULATING:
        a_string = "The Calculating";
        break;
      
      case PRODUCER_CONSUMER:
        a_string = "The Producer & Consumer";
        break;
      
      case IO:
        a_string = "The IO";
        break;
        
      default:
        a_string = "Invalid!";
        break;
    }
    return a_string;
  }
}
